<template>
	<view>
		订单详情
	</view>
</template>

<script>
	export default {
		data() {
			return {
				id: null
			}
		},
		onLoad(options) {
			console.log(options);
			if(options.id){
				this.id = options.id
				this.getData()
			}
		},
		methods: {
			async getData(){
				const orderDetail = await this.$u.api.orderDetail(this.id)
				console.log(orderDetail);
			}
		}
	}
</script>

<style>

</style>
